Skip to main content

Relight

Based on ic-light by lllyasviel. Changes the background and light up the image based on the direction provided.

ImagePipeline-Get
Tip
  • Provide simple prompts to describe the background you need
ImagePipeline-Post
https://api.imagepipeline.io/relight/v1
ImagePipeline-Auth
API-Key


{
"prompt": "sunset on the beach",
"negative_prompt": "cartoon,illustration,(low quality:2)",
"samples": 1, //Upto 4
"seed" : -1, //-1 will set the seed to a random number
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_zfdf0a8ed59e8666b89b10713_f117af872740fe30a_d20240608_m134333_c005_v0501011_t0058_u01717854213713",
"light": "top" //Options are "top", "bottom", "left", "right"
}
Relight image pipeline

Status

Your response will include a status.

  • If the status = SUCCESS, you will also have download_urls that will have the links to your generated image based on the number of samples you have entered. The maximum number of samples that can be generated is 4.
  • If the status = PENDING, you will receive a id. You can use the status endpoint to fetch your image using the id.
  • If the status = FAILURE, you will receive only an error message.

Endpoint: [GET]

  • https://api.imagepipeline.io/relight/v1/status/{{id}}

Pass the API-Key as the authorization in the header.